/**
 * Copyright(c) 2013-2015 by Puhuifinance Inc.
 * All Rights Reserved
 */
package com.puhui.chome.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.puhui.chome.manager.TemplateManager;
import com.puhui.chome.model.Template;
import com.puhui.chome.service.TemplateService;

/**
 * @author dingxingang
 */
@Service
public class TemplateServiceImpl implements TemplateService {

    @Autowired
    private TemplateManager templateManager;

    /**
     * 添加
     */
    @Override
    public void addTemplate(Template template) {
        templateManager.addTemplate(template);
    }

    /**
     * 获取
     */
    @Override
    public Template getTemplateById(Long id) {
        return templateManager.getTemplateById(id);
    }

    /**
     * 查询总记录数
     */
    @Override
    public long findTemplateCount(Map<String, Object> param) {
        return templateManager.findTemplateCount(param);
    }

    /**
     * 查询列表
     */
    @Override
    public List<Template> findTemplate(Map<String, Object> param) {
        return templateManager.findTemplate(param);
    }

}
